package com.dpteam.dao;

import com.dpteam.model.Permission;
import com.dpteam.model.Role;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: luolei
 * Date: 2016/1/7
 * Time: 16:45
 */
public interface RoleDao extends BaseDao<Role> {

    /**
     * 查询所有角色
     *
     * @return
     */
    List<Role> findAllRole();

    /**
     * 根据角色名查询权限集
     *
     * @return
     */
    List<Permission> findAllPermissionByRoleType(String roleType);

    void deleteById(int id);
}
